package edu.sctu.nieyu.day20150518;

/**
 * Created by user01 on 2015/5/19.
 */
public class TextDate {
    Teacher[]  teacher = new Teacher[2];
    public Teacher[] getTeacher(){
        Teacher teacher = new Teacher();
        teacher.number = 10;
        teacher.name = "老王";
        teacher.sex = "男";
        teacher.title = "教授";
        teacher.course = "英语";
        Student[] students = new Student[3];
        for (int i = 0 ;i < students.length; i ++){
            Student student = new Student();
            student.number = 102+i;
            student.name = "小王"+i;
            student.age = 18;
            student.grade = 59+i;
            student.area  = "chengdu";
            students[i] = student;

        }
        teacher.student = students;

        Teacher teacher1 = new Teacher();
        teacher1.number = 8;
        teacher1.name = "老王蛋";
        teacher1.sex = "女";
        teacher1.title = "副教授";
        teacher1.course = "历史";
        Student[] students1 = new Student[3];
        for (int i = 0 ;i < students.length; i ++){
            Student student = new Student();
            student.number = 102+i;
            student.name = "李四"+1;
            student.age = 18;
            student.grade = 59+i;
            student.area = "chengdu";
            students1[i] = student;
        }

        teacher1.student = students1;
        this.teacher[0] = teacher;
        this.teacher[1] = teacher1;
        //System.out.println(teacher.title+teacher.name+teacher.course+teacher.sex);
        return this.teacher;

    }


}
